package com.student;

import com.student.bean.Students;
import com.student.dao.StudentsDaoImpl;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class test {

    public void test() {
        ClassPathXmlApplicationContext classPathXmlApplicationContext =
                new ClassPathXmlApplicationContext( "applicationContext.xml");
        StudentsDaoImpl studentsDao = classPathXmlApplicationContext.getBean("studentsDaoImpl", StudentsDaoImpl.class);

        int i = studentsDao.update(new Students("000002", "大三", "软件技术", "女", "小高"));

    }
}
